<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>注册-蘑菇街</title>
<link rel="stylesheet" href="http://127.0.0.1/mogujie/Static/Home/css/register.css" />
<script type="text/javascript" src="http://127.0.0.1/mogujie/Static/js/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="http://127.0.0.1/mogujie/Static/hdjs/hdjs.min.js"></script>
<script type="text/javascript">
	 //随机验证码
    $(function(){
//  	alert(1);
    	var src = $('#verify-img').attr('src');
    	
    	$("#verify-img").click(function(){
    
      		$('#verify-img').attr('src',src + '&rand='+Math.random());
    	})
    	
    	
    	 $('#registerForm').validate({
    		 username: {
	                rule: {
	                    required: true,
	                     ajax:{url:"<?php echo U('Register/check_REG_User');?>"}
	                },
	                error: {
	                    required: '用户名不能为空'
	                },
	                success: '验证通过',
	                message: '请输入用户名'
	            },
	             password: {
                rule: {
                    required: true,
                    minlen: 6,
                    maxlen: 12
                },
                error: {
                    required: '密码不能为空',
                    minlen: '密码不能小于6位',
                    maxlen: '密码不能大于12位'
                },
                success: '验证通过',
	            message: '请输入密码(6~12位)'
            },
            password2: {
                rule: {
                    confirm: 'password2'
                },
                error: {
                    confirm: '两次密码不一致'
                },
                success: '验证通过',
	            message: '重新输入密码'
            },
    	})
    });
</script>
</head>

<body>
<div id="conut">
	<div class="top">
		<a href=""></a>
	</div>
	<!-- 注册框 -->
	<div class="millde">
		<div class="m_left">
			<a href=""><img src="http://127.0.0.1/mogujie/Static/Home/images/rejst.jpg" alt="" /></a>
		</div>
		<div id="register">
			<div><h5>新用户注册</h5></div>
			<form action="" method='post' name='register' id="registerForm">
				<ul>
					<li>
						<span>用户名 :&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
						<input type="text" name='username' id='reg-uname'/><br />
						<!--<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2-14个字符：字母、数字或中文</span>-->
					</li>
					<li>
						<span>请设置密码 :&nbsp;</span>
						<input type="password" name='password' id='reg-pwd'/>
						<!--<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;6-12个字符:字母、数字或下划线 _</span>-->
					</li>
					<li>
						<span>请确认密码 :&nbsp;</span>
						<input type="password" name='password2' id='reg-pwd'/>
						<!--<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;请再次输入密码</span>-->
					</li>
					<li>
						<span>验证码 :&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
						<input type="text" name='verify' id='reg-verify'/>
						 <img src="<?php echo U('Index/Register/code');?>" width='99' height='35' alt="验证码" id='verify-img'/> 
						<br />
						<!--<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;请输入图中的字母或数字，不区分大小写</span>-->
					</li>
					<li class='submit'>
						<input type="submit" value='立即注册'/>
					</li>
				</ul>
			</form>
			<a href="<?php echo U('Login/index');?>">已有账号</a>
		</div>
	</div>
</div>
<!-- 底部 -->
<div id="bottom">
	<div class="bb">
		<dl>
			<dt>新手帮助</dt>
			<dd><a href="">如何购买</a></dd>
			<dd><a href="">支付教程</a></dd>
			<dd><a href="">优惠券使用</a></dd>
			<dd><a href="">常见问题</a></dd>
		</dl>
		<dl>
			<dt>权益保障</dt>
			<dd><a href="">全国包邮</a></dd>
			<dd><a href="">7天无理由退货</a></dd>
			<dd><a href="">退货运费补贴</a></dd>
			<dd><a href="">72小时发货</a></dd>
		</dl>
		<dl>
			<dt>商家服务</dt>
			<dd><a href="">免费开店</a></dd>
			<dd><a href="">商家入驻</a></dd>
			<dd><a href="">管理后台</a></dd>
		</dl>
		<div class="micro">
			<p>蘑菇街移动客户端</p>
			<a href=""><img src="http://127.0.0.1/mogujie/Static/Home/images/micro.png" alt="" /></a>
		</div>
		<div class="end">©Copyright 2010-2015 蘑菇街 Mogujie.com (增值电信业务经营许可证：浙B2-20110349)</div>
	</div>
</div>

</body>
</html>
